<%@ include file="/include/taglibs.jsp"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="${ctx}/css/login.css" rel="stylesheet" type="text/css" />
<title>用户登录</title>
</head>
<body>
<%@include file="/include/head.jsp"%>
	 <!--页面中部内容-开始-->
	 <div class="login_wraper">
	 	<div class="loginWin_wraper">
			<div class="loginWinTitleOuter">
				<div class="loginWinTitleIn"><div class='title_wraper'><div class="titleText">登录采购部落</div></div></div>
			</div>
			<form id="loginForm" action="${ctx}/user/systemUserAction!doLogin.action" method="post" onKeyPress="javascript:onkeyDownEvent(event);">
			<div class="loginContent">
				<table>
					<tr><td width="110px" align="right" height="50px"><div class="columnName">用户名或邮箱:</div></td><td width="220px"><input type="text" id='username' value="${systemUser.username}" name='systemUser.username' class='columnInput' maxlength="50"/></td></tr>
					<tr><td width="110px" align="right"><div class="columnName">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:</td><td width="220px"><input type="password" id='password' value="${systemUser.password}" name='systemUser.password' class="columnInput" maxlength="50"/></td></tr>
					<c:if test="${errorCode eq '01'}">
					<tr><td height="40px" ></td><td> <div style="float:left"><font color="red">用户名或密码错误,请重新输入</font></div></td></tr>
					</c:if>
					<tr><td height="40px" ></td><td><input type="checkbox" value="01" name="rememberLogin" style="float:left;"/> <div style="float:left">记住登录状态</div><div style="float:right;margin-right:20px;">忘记密码了？</div></td></tr>
					<tr><td></td><td><div id='loginBtn' name='loginBtn' onclick="doLogin()" class='loginBtn'><a href="#">登&nbsp;&nbsp;&nbsp;录</a></div> 
					</td></tr>
					<tr><td height="40px;"></td><td>还不是彩购部落会员？<a href="${ctx}/user/systemUserAction!gotoReg.action" id='regBtn' name='regBtn'>马上注册</a></td></tr>
				</table>
				<div class="loginIco"></div>
			</div>
			</form>
		</div>
	 </div>
	 <!--页面中部内容-结束-->
	<%@include file="/include/footer.jsp" %>
</body>
<script type="text/javascript">
function doLogin(){
	if($("#username").val()!='' && $("#password").val()!=''){
		$("#loginForm").submit();
	}
}
function onkeyDownEvent(evt){
	 var evt=evt?evt:(window.event?window.event:null);//兼容IE和FF
	if(evt.keyCode ==13){
		doLogin();
	}
}
</script>
</html>